1"use client"; 2 3import { useParams } from "next/navigation"; 4import { PageCanvas } from "@/components/editor/page-canvas"; 5 6/** 7 * /w/:workspace/page/:id/:block — deep link to a specific block. Renders the 8 * page canvas with focusBlockId so (on plain pages) the target block is 9 * scrolled into view, expanded (toggles/columns), and briefly highlighted. 10 * Database pages ignore the block focus (they render DatabasePageView). 11 */ 12export default function BlockDeepLinkPage() { 13 const params = useParams<{ id: string; block: string }>(); 14 const pageId = params?.id ?? ""; 15 const blockId = params?.block ?? null; 16 17 if (!pageId) return null; 18 return <PageCanvas pageId={pageId} focusBlockId={blockId} />; 19} 20